package org.whuims.pois.model;

import org.whuims.poms.bean.EntityEntity;
import org.whuims.poms.bean.VectorEntity;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Arrays;

/**
 * Created by asus on 2014/7/8.
 */
@Entity
@javax.persistence.Table(name = "news_dyd", schema = "", catalog = "pois")
public class NewsDydEntity {
    private long id;

    @Id
    @javax.persistence.Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    private String titlecontent;

    @Basic
    @javax.persistence.Column(name = "titlecontent")
    public String getTitlecontent() {
        return titlecontent;
    }

    public void setTitlecontent(String titlecontent) {
        this.titlecontent = titlecontent;
    }

    private String titlelink;

    @Basic
    @javax.persistence.Column(name = "titlelink")
    public String getTitlelink() {
        return titlelink;
    }

    public void setTitlelink(String titlelink) {
        this.titlelink = titlelink;
    }

    private String abstext;

    @Basic
    @javax.persistence.Column(name = "abstext")
    public String getAbstext() {
        return abstext;
    }

    public void setAbstext(String abstext) {
        this.abstext = abstext;
    }

    private String newstime;

    @Basic
    @javax.persistence.Column(name = "newstime")
    public String getNewstime() {
        return newstime;
    }

    public void setNewstime(String newstime) {
        this.newstime = newstime;
    }

    private String charset;

    @Basic
    @javax.persistence.Column(name = "charset")
    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    private Integer type;

    @Basic
    @javax.persistence.Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    private String sitename;

    @Basic
    @javax.persistence.Column(name = "sitename")
    public String getSitename() {
        return sitename;
    }

    public void setSitename(String sitename) {
        this.sitename = sitename;
    }

    private String filepath;

    @Basic
    @javax.persistence.Column(name = "filepath")
    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    private Integer importance;

    @Basic
    @javax.persistence.Column(name = "importance")
    public Integer getImportance() {
        return importance;
    }

    public void setImportance(Integer importance) {
        this.importance = importance;
    }

    private Integer negativeindex;

    @Basic
    @javax.persistence.Column(name = "negativeindex")
    public Integer getNegativeindex() {
        return negativeindex;
    }

    public void setNegativeindex(Integer negativeindex) {
        this.negativeindex = negativeindex;
    }

    private String category;

    @Basic
    @javax.persistence.Column(name = "category")
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    private VectorEntity vector;

    @Basic
    @javax.persistence.Column(name = "vector")
    public VectorEntity getVector() {
        return vector;
    }

    public void setVector(VectorEntity vector) {
        this.vector = vector;
    }

    private EntityEntity entity;

    @Basic
    @javax.persistence.Column(name = "entity")
    public EntityEntity getEntity() {
        return entity;
    }

    public void setEntity(EntityEntity entity) {
        this.entity = entity;
    }

    private Byte isstarred;

    @Basic
    @javax.persistence.Column(name = "isstarred")
    public Byte getIsstarred() {
        return isstarred;
    }

    public void setIsstarred(Byte isstarred) {
        this.isstarred = isstarred;
    }

    private String crawltime;

    @Basic
    @javax.persistence.Column(name = "crawltime")
    public String getCrawltime() {
        return crawltime;
    }

    public void setCrawltime(String crawltime) {
        this.crawltime = crawltime;
    }

    private String pcontent;

    @Basic
    @javax.persistence.Column(name = "pcontent")
    public String getPcontent() {
        return pcontent;
    }

    public void setPcontent(String pcontent) {
        this.pcontent = pcontent;
    }

    private String planguage;

    @Basic
    @javax.persistence.Column(name = "planguage")
    public String getPlanguage() {
        return planguage;
    }

    public void setPlanguage(String planguage) {
        this.planguage = planguage;
    }

    private String prelatedwords;

    @Basic
    @javax.persistence.Column(name = "prelatedwords")
    public String getPrelatedwords() {
        return prelatedwords;
    }

    public void setPrelatedwords(String prelatedwords) {
        this.prelatedwords = prelatedwords;
    }

    private String pkeyword;

    @Basic
    @javax.persistence.Column(name = "pkeyword")
    public String getPkeyword() {
        return pkeyword;
    }

    public void setPkeyword(String pkeyword) {
        this.pkeyword = pkeyword;
    }

    private long taskid;

    @Basic
    @javax.persistence.Column(name = "taskid")
    public long getTaskid() {
        return taskid;
    }

    public void setTaskid(long taskid) {
        this.taskid = taskid;
    }

    @Override
    public String toString() {
        return "NewsDydEntity{" +
                "id=" + id +
                ", titlecontent='" + titlecontent + '\'' +
                ", titlelink='" + titlelink + '\'' +
                ", abstext='" + abstext + '\'' +
                ", newstime='" + newstime + '\'' +
                ", charset='" + charset + '\'' +
                ", type=" + type +
                ", sitename='" + sitename + '\'' +
                ", filepath='" + filepath + '\'' +
                ", importance=" + importance +
                ", negativeindex=" + negativeindex +
                ", category='" + category + '\'' +
                ", vector=" + vector +
                ", entity=" + entity +
                ", isstarred=" + isstarred +
                ", crawltime='" + crawltime + '\'' +
                ", pcontent='" + pcontent + '\'' +
                ", planguage='" + planguage + '\'' +
                ", prelatedwords='" + prelatedwords + '\'' +
                ", pkeyword='" + pkeyword + '\'' +
                ", taskid=" + taskid +
                '}';
    }
}
